package edu.bw.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.sql.Connection;

@Configuration
@ComponentScan("edu.bw")
@Import(DBConfig.class)
public class SpringConfig {
    @Bean("threadLocal")
    public ThreadLocal<Connection> threadLocal() {
        return new ThreadLocal<Connection>();
    }

}
